package com.zhangliuliu.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;
@TableName("expert")
public class ExpertBean {
    @TableId(value = "pk_id",type = IdType.AUTO)
    private int exId;
    @TableField("expert_name")
    private String expertName;
    @TableField("expert_sex")
    private String expertSex;
    @TableField("expert_birth")
    private LocalDate birthday;
    @TableField("expert_pic")
    private String pic;
    //专长
    @TableField("expert_goods")
    private String speciality;
    //职位
    @TableField("expert_post")
    private String post;
    @TableField("expert_tell")
    private String tell;
    @TableField("expert_unit")
    //工作单位
    private String unit;
    @TableField("expert_address")
    private String address;
    @TableField("expert_mail")
    private String mail;

    public ExpertBean() {
    }

    public ExpertBean(String expertName, String expertSex, LocalDate birthday,
                      String pic, String speciality, String post, String tell,
                      String unit, String address, String mail) {
        this.expertName = expertName;
        this.expertSex = expertSex;
        this.birthday = birthday;
        this.pic = pic;
        this.speciality = speciality;
        this.post = post;
        this.tell = tell;
        this.unit = unit;
        this.address = address;
        this.mail = mail;
    }

    public int getExId() {
        return exId;
    }

    public void setExId(int exId) {
        this.exId = exId;
    }

    public String getExpertName() {
        return expertName;
    }

    public void setExpertName(String expertName) {
        this.expertName = expertName;
    }

    public String getExpertSex() {
        return expertSex;
    }

    public void setExpertSex(String expertSex) {
        this.expertSex = expertSex;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getSpeciality() {
        return speciality;
    }

    public void setSpeciality(String speciality) {
        this.speciality = speciality;
    }

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    public String getTell() {
        return tell;
    }

    public void setTell(String tell) {
        this.tell = tell;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    @Override
    public String toString() {
        return "ExpertBean{" +
                "exId=" + exId +
                ", expertName='" + expertName + '\'' +
                ", expertSex='" + expertSex + '\'' +
                ", birthday=" + birthday +
                ", pic='" + pic + '\'' +
                ", speciality='" + speciality + '\'' +
                ", post='" + post + '\'' +
                ", tell='" + tell + '\'' +
                ", unit='" + unit + '\'' +
                ", address='" + address + '\'' +
                ", mail='" + mail + '\'' +
                '}';
    }
}
